$w: 10rem;
$c: blue;

// 头部
header {
    width: $w;
    height: 1.3333rem;
    display: flex;
    background: $c;
    justify-content: space-between;

    .logo {
        width: 7.3rem;

        img {
            width: 3.3101rem;
            margin: 0.3333rem;
        }
    }

    .appDown {
        width: 1.28rem;
        img {
            width: 0.9067rem;
            margin: 0.2rem;
        }
    }
}

// 搜索
#search {
    width: $w;
    height: 1.36rem;
    display: flex;
    div.searchIpt input {
        width: 8.52rem;
        height: 0.8rem;
        margin: 0.2rem;
        background: #cecece;
        border-radius: 0.5rem;
        border: none;
        font-size: 0.5rem;
        padding-left: 0.5333rem;
        outline: none;
    }
    div.searchBtn button {
        background: blue;
        width: 1.68rem;
        height: 0.8rem;
        color: #fff;
        border-radius: 0.5rem;
        margin: 0.2rem 0 0.2rem -1.3rem;
        border: none;
        font-size: 0.56rem;
    }
}

// 首页 全部分类 --面包线
.back {
    width: 9.8667rem;
    padding: {
        left: 0.1333rem;
    }
    border: {
        top: 0.08rem solid #cecece;
        bottom: 0.0267rem solid #cecece;
    }
    background-image: linear-gradient(to top, #cecece, #fff);
    a {
        font: 0.3733rem/0.9333rem "微软雅黑";
        text-decoration: none;
        color: #666;
    }
}

// 热门品牌排行
.brand {
    width: 9.8667rem;
    margin-bottom: 0.2133rem;
    padding: {
        left: 0.1333rem;
    }
    border: {
        top: 0.0267rem solid #cecece;
        bottom: 0.0267rem solid #cecece;
    }
    margin-top: 0.2667rem;
    background: #f4f4f4;
    p {
        color: #333;
        font: 0.3733rem/0.8rem "微软雅黑";
        margin: {
            bottom: 0.2667rem;
        }
        padding: {
            left: 0.1333rem;
        }
    }
}

// 主体部分
main {
    width: $w;
    ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        li {
            width: 10rem;
            // padding: 0.2667rem 0.4rem;
            border: 0.0267rem solid #cecece;
            background: #f4f4f4;

            div.title {
                display: flex;
                justify-content: space-between;
                border-bottom: 0.0267rem solid #ccc;

                b {
                    color: #333;
                    font: 0.4267rem/0.8rem "微软雅黑";
                    margin-left: 0.2667rem;
                }
                i {
                    width: 0;
                    height: 0;
                    margin-top: 0.2667rem;

                    border: {
                        top: 0.1867rem solid #000;
                        bottom: 0.1867rem solid transparent;
                        left: 0.1867rem solid transparent;
                        right: 0.1867rem solid transparent;
                    }
                }
            }

            .content {
                border-right: 0.0267rem solid #ccc;
                display: none;

                .list {
                    border-bottom: 0.0267rem solid #ccc;
                    display: flex;
                    flex-direction: column;
                    height: 1.9733rem;
                    // border-bottom: 0.0267rem solid #ccc;

                    div {
                        margin: 0.2667rem;

                        span {
                            display: inline-block;
                            font-size: 0.48rem;
                        }

                        p {
                            display: inline-block;
                            font-size: 0.48rem;
                            width: 0.6667rem;
                            height: 0.6667rem;
                            text-align: center;
                            background: #ccc;
                            margin-right: 0.2rem;
                        }

                    }
                }


                .list:nth-of-type(1){
                    .name{
                        p{
                            background-color: red;
                        }
                    }
                }

                .list:nth-of-type(2){
                    .name{
                        p{
                            background: #ffa500;
                        }
                    }
                }

                .list:nth-of-type(3){
                    .name{
                        p{
                            background: #adff2f;
                        }
                    }
                }

                .brandInfo {
                    color: #999;
                    font-size: 0.3733rem;
                    margin-left: 0.2667rem;
                    margin-bottom: 0.1333rem;
                }
            }
        }
    }
}

// 尾部
.footer {
    margin-top: 0.2667rem;
    width: $w;
    background: #f4f4f4;
    height: 5.9768rem;
    div {
        width: $w;
        background: #f4f4f4;
        &:nth-of-type(1) {
            // padding: .2667rem;
            text-align: center;
            padding-top: 0.3rem;
            a {
                display: block;
                color: #333;
                font: 0.3467rem/0.8533rem "微软雅黑";
                border: 0.0267rem solid #cecece;
                border-radius: 0.2rem;

                margin: 0 0.1rem;
            }
        }
        &:nth-of-type(2) {
            background: $c;
            margin: 0.2667rem 0 0.16rem 0;
            height: 0.9333rem;
            display: flex;
            justify-content: space-between;
            span {
                color: #fff;
                font: 0.48rem/0.9333rem "";
                margin-left: 0.2rem;
            }
            a {
                padding: 0 0.2667rem 0 0;
                img {
                    width: 0.5333rem;
                    float: right;
                    margin: 0.2rem 0;
                }
            }
        }
        &:nth-of-type(3) {
            // width: $w;
            border: 0.0267rem solid #cecece;
            border-left: none;
            border-right: none;
            // display: flex;
            // padding: 0 .4rem;
            margin-top: 0.5rem;

            a {
                text-align: center;
                display: block;
                color: #333;
                height: 0.88rem;
                display: inline-block;
                border-right: 0.0267rem solid #cecece;
                font: 0.3733rem/0.88rem "";
                &:nth-of-type(1) {
                    width: 1.6733rem;
                    padding: 0 0.5333rem;
                }
                &:nth-of-type(2) {
                    width: 2.9333rem;
                }
                &:nth-of-type(3) {
                    width: 3.34rem;
                    border-right: none;
                }
            }
        }
        &:nth-of-type(4) {
            text-align: center;
            p {
                margin: 0.3rem 0;
                a {
                    font-size: 0.3467rem;
                    color: #333;
                }
            }
        }
    }
}
